<?php
namespace app\index\controller;
use think\Controller;
use think\Db;
class Index extends Controller
{
    public function index()
    {
         return $this->fetch();
    }

    public function contact()
    {
    	$img = $_FILES;

    	$data = ['img/png','img/jpg','img/gif'];
    	if(img['type']!=$data)
    	{
    		die('图片类型不符合');
    	}

    	if(img['size']>1500*1024)
    	{
    		die('图片类型过大');
    	}
    	return $this->fetch();
    }
}
